package com.iseastar.guojiang.newcabinet;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.view.View;

import com.iseastar.BaseActivity2;
import com.iseastar.guojiang.logic.AppLogic;
import com.iseastar.guojiang.model.TaskResultPriceBean;
import com.shouhuobao.station.R;
import com.shouhuobao.station.databinding.SameCityCompleteTheTaskActivityBinding;

/**
 * Created by lidandan on 2017/12/28.
 * 同城任务完成界面
 */
public class SameCityCompleteTheTaskActivity extends BaseActivity2 {

    private TaskResultPriceBean item;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        item = (TaskResultPriceBean) getIntent().getSerializableExtra("item");
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void findViewById() {
        SameCityCompleteTheTaskActivityBinding binding = DataBindingUtil.setContentView(getContext(), R.layout.same_city_complete_the_task_activity);
//        setContentView(R.layout.same_city_complete_the_task_activity);
        super.findViewById();
        getAppTitle().setCommonTitle("任务完成");
        if (item != null) {
            binding.setItem(item);
        }
//        //佣金金额
//        ((TextView) findViewById(R.id.cost_tv)).setText("￥" + item.getMoney());
//        //平台信息费
//        ((TextView) findViewById(R.id.platform_cost_tv)).setText("平台信息费：￥" + item.getPlat());
        //返回首页
        findViewById(R.id.go_home_bt).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                AppLogic.courierBackToHomeAndRefresh(getContext());
                finish();
            }
        });
    }
}
